package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbGroupbuyDao;
import com.gtw.modules.entity.TbGroupbuy;
import com.gtw.modules.sys.service.SysGroupbuyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/** 团购接口实现类
 *
 * @author wuye
 * @date 2018/2/24
 */
@Service
public class SysGroupbuyServiceImpl implements SysGroupbuyService {

    @Autowired
    private TbGroupbuyDao tbGroupbuyDao;

    @Override
    public TbGroupbuy queryObject(Integer id) {
        return tbGroupbuyDao.queryObject(id);
    }

    @Override
    public List<TbGroupbuy> queryList(Map<String, Object> map) {
        return tbGroupbuyDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return tbGroupbuyDao.queryTotal(map);
    }

    @Override
    public void save(TbGroupbuy tbGroupbuy) {
        tbGroupbuyDao.save(tbGroupbuy);
    }

    @Override
    public void update(TbGroupbuy tbGroupbuy) {
        tbGroupbuyDao.update(tbGroupbuy);
    }

    @Override
    public void delete(Integer id) {
        tbGroupbuyDao.delete(id);
    }

    @Override
    public void deleteBatch(Integer[] ids) {
        tbGroupbuyDao.deleteBatch(ids);
    }
}
